package com.stlm2.dems.user.dao.impl;

import org.springframework.stereotype.Repository;

import com.stlm2.dems.user.entity.SystemPrivilege;
import com.stlm2.dems.user.dao.SystemPrivilegeDao;
import com.stlm2.core.base.impl.BaseDaoImpl;

import java.util.List;

@Repository("systemPrivilegeDao")
public class SystemPrivilegeDaoImpl extends BaseDaoImpl<SystemPrivilege> implements SystemPrivilegeDao {

    @Override
    public List<SystemPrivilege> getByUserId(int userId) {
        return  selectList("getByUserId",userId);
    }

    @Override
    public List<SystemPrivilege> getByRoleId(int roleId) {
        return  selectList("getByRoleId",roleId);
    }
}